git clone https://gitee.com/mirrors/LLVM.git
mkdir build
cd build
cmake -G Ninja ../LLVM/llvm -DLLVM_TARGETS_TO_BUILD="X86;AArch64" -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=ON -DLLVM_ENABLE_PROJECTS="bolt"
ninja bolt
